package com.diudiu.diudiu.controller;



import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.diudiu.diudiu.entity.PostComment;
import com.diudiu.diudiu.service.PostCommentService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;


@RestController
@RequestMapping("/postComment")
@CrossOrigin
public class PostCommentController{
    @Resource
    private PostCommentService postCommentService;
    @GetMapping("")
    public List<PostComment> getAll(){
        return postCommentService.list();
    }
}

